Project Sekai
🔒 CrewCTF 2023 / ✅-crypto-pi_is_314
Sutx
BOT
07/07/2023 10:02 PM
pi_is_3.14 - 1000 points
Category:
Crypto
Description:
Area of a quarter circle of radius 1 is pi/4 Let's estimate pi by Monte Carlo simulation! Author : y011d4
nc pi-is-3-14.chal.crewc.tf 20003
Files:
https://crewc.tf/files/938441ff975ccfbd45dda9ba42b5b89a/crypto_pi_is_3.14_a220dd534c26121a153e224f532d6acf.tar.gz?token=eyJ1c2VyX2lkIjoyMSwidGVhbV9pZCI6MTYsImZpbGVfaWQiOjE2fQ.ZKjt2Q.7kk5LTPqkJBL6Xlcp1ryX9KJ1j0
Tags:
No tags.
Sutx
pinned
a message
to this channel.
07/07/2023 10:02 PM
Sutx
BOT
07/07/2023 10:26 PM
@Utaha
wants to collaborate
Utaha
07/07/2023 10:41 PM
use low bit to gen the floating number
22:42
the state update logic looks like LFSR
22:42
basically each bit is a linear combinatino of the original key
22:46
the way to do this is probably: if the outcome is outside of the circle, then with 90% prob x > 0.5, which means the low bit of n32 is 1
22:47
we have roughly 10000 * (1-pi/4) = 2146 equations
22:47
it should be more than enough since we have only 64 variables
(edited)
22:50
gonna go to sleep so feel free to just take it
Sutx
BOT
07/08/2023 12:25 AM
@kanon
wants to collaborate
Sutx
BOT
07/08/2023 2:31 AM
@Violin
wants to collaborate
Sutx
BOT
07/08/2023 6:33 AM
@layka_
wants to collaborate
Utaha
07/08/2023 6:43 AM
I'm back
06:44
maybe it might be better to say (x&1, y&1) != (0, 0) for points outside of the circle
06:44
so we can get rid of any probability issues and randomization
Utaha
used /ctf solve
Sutx
BOT
07/08/2023 7:17 AM
✅ Challenge solved.
Exported 17 message(s)